package cn.ljw.mybatis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @author 一朝风月
 * @date 2024/9/21 19:50
 * @Code 面向注解面向卿，终无解释再无你
 * @description Mybatis分页起始封装
 */
@Data
@AllArgsConstructor
public class RowBounds {
    public static final int NO_ROW_OFFSET = 0;
    public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;
    public static final RowBounds DEFAULT = new RowBounds();
    private final int offset;
    private final int limit;

    public RowBounds() {
        this.limit=Integer.MAX_VALUE;//最大极限
        this.offset=0;//起始为0
    }
}
